package com.s_recycler.adapter;

import android.widget.TextView;

import com.s7.recycler.adapter.BaseLoadMoreAdapter;
import com.s7.recycler.holder.BaseViewHolder;
import com.s_recycler.R;

/**
 * Created by Administor on 2018\7\12 0012.
 */

public class TestAdapter extends BaseLoadMoreAdapter<String> {

    @Override
    protected int getLayoutId() {
        return R.layout.layout_text;
    }

    @Override
    protected void bindData(BaseViewHolder holder, int position, String data) {
        TextView textView = holder.findViewById(R.id.text);
        textView.setText(data);
    }
}
